﻿DECLARE @CurrentMigration [nvarchar](max)

IF object_id('[dbo].[__MigrationHistory]') IS NOT NULL
    SELECT @CurrentMigration =
        (SELECT TOP (1) 
        [Project1].[MigrationId] AS [MigrationId]
        FROM ( SELECT 
        [Extent1].[MigrationId] AS [MigrationId]
        FROM [dbo].[__MigrationHistory] AS [Extent1]
        WHERE [Extent1].[ContextKey] = N'CaltechSoft.Service.Migrations.Configuration'
        )  AS [Project1]
        ORDER BY [Project1].[MigrationId] DESC)

IF @CurrentMigration IS NULL
    SET @CurrentMigration = '0'

IF @CurrentMigration < '201405201355009_init'
BEGIN
    CREATE TABLE [dbo].[CertificateDetails] (
        [CertificateDetailsId] [int] NOT NULL IDENTITY,
        [CertificateId] [int] NOT NULL,
        [CertificateStandardId] [int] NOT NULL,
        CONSTRAINT [PK_dbo.CertificateDetails] PRIMARY KEY ([CertificateDetailsId])
    )
    CREATE INDEX [IX_CertificateId] ON [dbo].[CertificateDetails]([CertificateId])
    CREATE INDEX [IX_CertificateStandardId] ON [dbo].[CertificateDetails]([CertificateStandardId])
    CREATE TABLE [dbo].[Certificate] (
        [CertificateId] [int] NOT NULL IDENTITY,
        [CertificateNo] [nvarchar](max),
        [CustomerId] [int] NOT NULL,
        [EquipmentId] [int] NOT NULL,
        [ConditionReceivedId] [nvarchar](max),
        [ConditionReturnedId] [nvarchar](max),
        [Temperature] [nvarchar](max),
        [RelativeHumidity] [nvarchar](max),
        [CalibrationCycle] [nvarchar](max),
        [CalibrationDate] [datetime] NOT NULL,
        [NextDueDate] [datetime] NOT NULL,
        [CertifiedBy] [nvarchar](max),
        [Technician] [nvarchar](max),
        [QualityInspector] [nvarchar](max),
        [Manufacturer] [nvarchar](max),
        [Description] [nvarchar](max),
        [ModelNumber] [nvarchar](max),
        [SerialNumber] [nvarchar](max),
        [PONumber] [nvarchar](max),
        [Procedure] [nvarchar](max),
        [AssetNumber] [nvarchar](max),
        [Remarks] [nvarchar](max),
        [CreatedBy] [int] NOT NULL,
        [CreatedDate] [datetime],
        [UpdatedDate] [datetime],
        [UpdatedBy] [int] NOT NULL,
        CONSTRAINT [PK_dbo.Certificate] PRIMARY KEY ([CertificateId])
    )
    CREATE TABLE [dbo].[CertificateStandard] (
        [CertificateStandardId] [int] NOT NULL IDENTITY,
        [StandardNo] [nvarchar](max),
        [Manufacturer] [nvarchar](max),
        [ModelNumber] [nvarchar](max),
        [SerialNumber] [nvarchar](max),
        [DueDate] [datetime] NOT NULL,
        [TestReportNumber] [nvarchar](max),
        [CreatedBy] [int] NOT NULL,
        [CreatedDate] [datetime],
        [UpdatedDate] [datetime],
        [UpdatedBy] [int] NOT NULL,
        CONSTRAINT [PK_dbo.CertificateStandard] PRIMARY KEY ([CertificateStandardId])
    )
    CREATE TABLE [dbo].[Customers] (
        [Id] [int] NOT NULL IDENTITY,
        [Name] [nvarchar](max),
        [Address] [nvarchar](max),
        [Tel] [nvarchar](max),
        [Mobile] [nvarchar](max),
        [ContactPersonName] [nvarchar](max),
        [Email] [nvarchar](max),
        [Fax] [nvarchar](max),
        [NextDueDate] [datetime],
        [CreatedBy] [int] NOT NULL,
        [CreatedDate] [datetime],
        [UpdatedDate] [datetime],
        [UpdatedBy] [int] NOT NULL,
        CONSTRAINT [PK_dbo.Customers] PRIMARY KEY ([Id])
    )
    CREATE TABLE [dbo].[Equipment] (
        [Id] [int] NOT NULL IDENTITY,
        [Manufacturer] [nvarchar](max),
        [Description] [nvarchar](max),
        [ModelNumber] [nvarchar](max),
        [SerialNumber] [nvarchar](max),
        [PONumber] [nvarchar](max),
        [Procedure] [nvarchar](max),
        [AssetNumber] [nvarchar](max),
        [CalibrationDate] [datetime],
        [NextDueDate] [datetime],
        [Name] [nvarchar](max),
        [CustomerId] [int] NOT NULL,
        [CreatedBy] [int] NOT NULL,
        [CreatedDate] [datetime],
        [UpdatedDate] [datetime],
        [UpdatedBy] [int] NOT NULL,
        CONSTRAINT [PK_dbo.Equipment] PRIMARY KEY ([Id])
    )
    CREATE TABLE [dbo].[QuoteItems] (
        [Id] [int] NOT NULL IDENTITY,
        [Quantity] [int] NOT NULL,
        [UnitPrice] [bigint] NOT NULL,
        [EquipmentId] [int] NOT NULL,
        [QuoteId] [int] NOT NULL,
        [CreatedBy] [int] NOT NULL,
        [CreatedDate] [datetime],
        [UpdatedDate] [datetime],
        [UpdatedBy] [int] NOT NULL,
        CONSTRAINT [PK_dbo.QuoteItems] PRIMARY KEY ([Id])
    )
    CREATE INDEX [IX_EquipmentId] ON [dbo].[QuoteItems]([EquipmentId])
    CREATE INDEX [IX_QuoteId] ON [dbo].[QuoteItems]([QuoteId])
    CREATE TABLE [dbo].[Quotes] (
        [Id] [int] NOT NULL IDENTITY,
        [QuoteDate] [datetime],
        [ServiceCharges] [bigint] NOT NULL,
        [Tax] [bigint] NOT NULL,
        [CompanyId] [int] NOT NULL,
        [SalesmanId] [nvarchar](128),
        [CreatedBy] [int] NOT NULL,
        [CreatedDate] [datetime],
        [UpdatedDate] [datetime],
        [UpdatedBy] [int] NOT NULL,
        CONSTRAINT [PK_dbo.Quotes] PRIMARY KEY ([Id])
    )
    CREATE INDEX [IX_CompanyId] ON [dbo].[Quotes]([CompanyId])
    CREATE INDEX [IX_SalesmanId] ON [dbo].[Quotes]([SalesmanId])
    CREATE TABLE [dbo].[AspNetUsers] (
        [Id] [nvarchar](128) NOT NULL,
        [Tel] [nvarchar](max),
        [FirstName] [nvarchar](max),
        [LastName] [nvarchar](max),
        [BillingAddress] [nvarchar](max),
        [BillingPOBox] [nvarchar](max),
        [BillingZipCode] [nvarchar](max),
        [BillingCity] [nvarchar](max),
        [BillingCountry] [nvarchar](max),
        [IsDeleted] [bit] NOT NULL,
        [Email] [nvarchar](256),
        [EmailConfirmed] [bit] NOT NULL,
        [PasswordHash] [nvarchar](max),
        [SecurityStamp] [nvarchar](max),
        [PhoneNumber] [nvarchar](max),
        [PhoneNumberConfirmed] [bit] NOT NULL,
        [TwoFactorEnabled] [bit] NOT NULL,
        [LockoutEndDateUtc] [datetime],
        [LockoutEnabled] [bit] NOT NULL,
        [AccessFailedCount] [int] NOT NULL,
        [UserName] [nvarchar](256) NOT NULL,
        CONSTRAINT [PK_dbo.AspNetUsers] PRIMARY KEY ([Id])
    )
    CREATE UNIQUE INDEX [UserNameIndex] ON [dbo].[AspNetUsers]([UserName])
    CREATE TABLE [dbo].[AspNetUserClaims] (
        [Id] [int] NOT NULL IDENTITY,
        [UserId] [nvarchar](128) NOT NULL,
        [ClaimType] [nvarchar](max),
        [ClaimValue] [nvarchar](max),
        CONSTRAINT [PK_dbo.AspNetUserClaims] PRIMARY KEY ([Id])
    )
    CREATE INDEX [IX_UserId] ON [dbo].[AspNetUserClaims]([UserId])
    CREATE TABLE [dbo].[AspNetUserLogins] (
        [LoginProvider] [nvarchar](128) NOT NULL,
        [ProviderKey] [nvarchar](128) NOT NULL,
        [UserId] [nvarchar](128) NOT NULL,
        CONSTRAINT [PK_dbo.AspNetUserLogins] PRIMARY KEY ([LoginProvider], [ProviderKey], [UserId])
    )
    CREATE INDEX [IX_UserId] ON [dbo].[AspNetUserLogins]([UserId])
    CREATE TABLE [dbo].[AspNetUserRoles] (
        [UserId] [nvarchar](128) NOT NULL,
        [RoleId] [nvarchar](128) NOT NULL,
        CONSTRAINT [PK_dbo.AspNetUserRoles] PRIMARY KEY ([UserId], [RoleId])
    )
    CREATE INDEX [IX_UserId] ON [dbo].[AspNetUserRoles]([UserId])
    CREATE INDEX [IX_RoleId] ON [dbo].[AspNetUserRoles]([RoleId])
    CREATE TABLE [dbo].[AspNetRoles] (
        [Id] [nvarchar](128) NOT NULL,
        [Name] [nvarchar](256) NOT NULL,
        CONSTRAINT [PK_dbo.AspNetRoles] PRIMARY KEY ([Id])
    )
    CREATE UNIQUE INDEX [RoleNameIndex] ON [dbo].[AspNetRoles]([Name])
    CREATE TABLE [dbo].[Term] (
        [TermId] [int] NOT NULL IDENTITY,
        [TermName] [nvarchar](max),
        [Description] [nvarchar](max),
        [Price] [decimal](18, 2),
        [IsPublished] [bit] NOT NULL,
        CONSTRAINT [PK_dbo.Term] PRIMARY KEY ([TermId])
    )
    ALTER TABLE [dbo].[CertificateDetails] ADD CONSTRAINT [FK_dbo.CertificateDetails_dbo.Certificate_CertificateId] FOREIGN KEY ([CertificateId]) REFERENCES [dbo].[Certificate] ([CertificateId]) ON DELETE CASCADE
    ALTER TABLE [dbo].[CertificateDetails] ADD CONSTRAINT [FK_dbo.CertificateDetails_dbo.CertificateStandard_CertificateStandardId] FOREIGN KEY ([CertificateStandardId]) REFERENCES [dbo].[CertificateStandard] ([CertificateStandardId]) ON DELETE CASCADE
    ALTER TABLE [dbo].[QuoteItems] ADD CONSTRAINT [FK_dbo.QuoteItems_dbo.Equipment_EquipmentId] FOREIGN KEY ([EquipmentId]) REFERENCES [dbo].[Equipment] ([Id]) ON DELETE CASCADE
    ALTER TABLE [dbo].[QuoteItems] ADD CONSTRAINT [FK_dbo.QuoteItems_dbo.Quotes_QuoteId] FOREIGN KEY ([QuoteId]) REFERENCES [dbo].[Quotes] ([Id]) ON DELETE CASCADE
    ALTER TABLE [dbo].[Quotes] ADD CONSTRAINT [FK_dbo.Quotes_dbo.Customers_CompanyId] FOREIGN KEY ([CompanyId]) REFERENCES [dbo].[Customers] ([Id]) ON DELETE CASCADE
    ALTER TABLE [dbo].[Quotes] ADD CONSTRAINT [FK_dbo.Quotes_dbo.AspNetUsers_SalesmanId] FOREIGN KEY ([SalesmanId]) REFERENCES [dbo].[AspNetUsers] ([Id])
    ALTER TABLE [dbo].[AspNetUserClaims] ADD CONSTRAINT [FK_dbo.AspNetUserClaims_dbo.AspNetUsers_UserId] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE CASCADE
    ALTER TABLE [dbo].[AspNetUserLogins] ADD CONSTRAINT [FK_dbo.AspNetUserLogins_dbo.AspNetUsers_UserId] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE CASCADE
    ALTER TABLE [dbo].[AspNetUserRoles] ADD CONSTRAINT [FK_dbo.AspNetUserRoles_dbo.AspNetUsers_UserId] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE CASCADE
    ALTER TABLE [dbo].[AspNetUserRoles] ADD CONSTRAINT [FK_dbo.AspNetUserRoles_dbo.AspNetRoles_RoleId] FOREIGN KEY ([RoleId]) REFERENCES [dbo].[AspNetRoles] ([Id]) ON DELETE CASCADE
    CREATE TABLE [dbo].[__MigrationHistory] (
        [MigrationId] [nvarchar](150) NOT NULL,
        [ContextKey] [nvarchar](300) NOT NULL,
        [Model] [varbinary](max) NOT NULL,
        [ProductVersion] [nvarchar](32) NOT NULL,
        CONSTRAINT [PK_dbo.__MigrationHistory] PRIMARY KEY ([MigrationId], [ContextKey])
    )
    INSERT [dbo].[__MigrationHistory]([MigrationId], [ContextKey], [Model], [ProductVersion])
    VALUES (N'201405201355009_init', N'CaltechSoft.Service.Migrations.Configuration',  0x1F8B0800000000000400ED5DDD6EDCB815BE2FD07718CC555B643DFED9046960EFC2B193AED1C4F66626DBA237812CD1B6108D342B69BC368A3E592FFA487D8592A224FE53A44471C6E92040E021C58F3CE4E1E1E1210FCF7FFFFD9FE31F1F97C9E401E4459CA527D383BDFDE904A46116C5E9DDC9745DDE7EF77AFAE30FBFFFDDF1BB68F938F9A5F9EE087D074BA6C5C9F4BE2C576F66B322BC07CBA0D85BC6619E15D96DB91766CB591065B3C3FDFD3FCF0E0E6600424C21D66472FC699D96F112543FE0CFB32C0DC1AA5C07C9C72C024951A7C39C79853AB90C96A058052138999E054909C2FB39AA610EF28738047BEF205AF9F4FE6F7B10A8048FE574729AC4016CDB1C24B7D34990A6591994B0E56F3E17605EE6597A375FC18420593CAD00FCEE36480A5053F4867C6E4ADCFE21226E460A3650E1BA28B3A525E0C151DD5B33BE78AF3E9FB6BD09FB13F714A2BAEA53D89D202FE3DB380C4A700ECA204E8AE984AFF6CD5992A3221D9D8FFFD813115F4C24E55EB4DC04990EFD835FAD93729D839314ACCB3C485E4CAED737491CFE153C2DB2AF203D49D749425303E981794C024CBACEB3156CC2D32770ABA4F1229A4E662CD28C876A81B428B85F2ED2F2E8703AB9840D0C6E12D03214D587F332CBC15F400A7208105D07650972C80F1711A8BA4D688FBAF6EE6A8DA1E6659046411E59435E060FF15D45981A7C3AF90492EA9BE23E5EE1C94873C71719EFBDCFB3E5A72C6191245F7E5904F91D80337D91197D3ECFD679D88F8EA693BAE869BE33A74B5342479FAE988CCEE31999F6A6C2C0A114D8A2E93F70DE6F68C25F664DB570ED820BF374F23178FC00D2BBF2FE640AFF84DC153F82A849A99BF2398DE13A0E0B95F9BA5B2654830DF2A1B2E5DDAFEB78B584140E1652591AC5A81F3F8110C40F801251E37502A9133262EAA5CE0558AE108740C61FBD2E2CBE1EC04FEB651C552C38768706497C9357D3E1EC294CC6A790AAF0BC1262B83EF4F702EA9BD65C780995C9F3357082554F6810BD1DBFE31750DAC2EFE3201DBDAA9FA1D60E79E9222D562084226FF40A3F06E9FA3608D18C19BFB273508479BCC2CAF7D884A1BDCFE57A79E3812EB80AC3DD8FA7CAAEAF7C55946721887C88D2D3A200A527AA3EC13D5EFEB5185F78E600692A443CF55CB9318C5C66EA8B7E5E45038B5A37DE6403D02AF163EE671AC5DD703FD36C0F86EAF96473E34CDF6F20B748EFA7F7B903F47FF3EDB2BB7D4053A7874D80D795F59B5DED5CE98B0B50949FC02ACB7DAD333BF93F4CFEBBB5FF68D60313B351BF75A1B6020C5E0C6A9C4DAF007DC4BD4FD98EFE1F5F558DA21C14E3AB8F0B907858346E621F66842C2DE13A780DF9344BBD0CD2BB259CBDA3D7F21EA18C5C87D664B25B807A4AE6D6AE3A5434B7403BD9BC45CAF0CECCB43333C96AF26966EAB49D8F26F7BDACB0AE4EB8768B54932C2C523FAFB3125C94603974916A81768B54E7E14BFDDD105E84F3A8BCCEE3105030AFBEDFDCD92F1EFEDD3C7568CDA0F4478911A39D6F5FA8EF88C542922D982764DFC86C11BA465618EA067E41F085D0309C2CDC97A1F3065D8AA95BE540A2EDA499C1BCEF335DEAAE3CBB473C500C93620BB247EE0770962D5741FA34547ECD83041490DFB477500E0E5FEF0CBFAE0DBF78FC3472A8FD82974475865C38B6B9B662B1167BFDC4A2BC29ACC8346D48C3929AB6904FF8E634398A16B5D9830CD89F8BE1C66B84F1BC25F50041617D46E5C16819E745E9658BF821F054D1DB384920B22FCB7C5DDDF5D5DB6C7CFB6F5DD93FE2D5192CE3ABBA331FD7199BBAB2755AE6E35777519C8304C0B5ADA9E96D06052692ADB61BB38EC385C397AF5C1D619C65E96D9C2F87B7F93A288ADFB23CFA2928EE3D9829C3750E39685E06CBD5F8E6C3FB2C05BE4C95A42E6743B3F82D7B1FA0AB9EEF52546A30DE872CFC9AADCB7769A5FF7D2E435B15B00570D29CD3308442F93D64661055537DA07105AA131D8B8AE9FCEBAFD22641AC502151F3BE34F94467A39205858DCEB355213F647771AA694993CFB50427CB5B52E7D9B60421681A526773EDA852E5CDC05983B4D7669F8CF0AAFED5A9B21F5B9FBFD3627509CABDA674A3D0E610134AD0AF7B02EC8B897161A2F31E9AEABC470737B747AF5FBE0AA2A357DF83A397DFA2A50275E526F4ED6AF850A5E31F97A09A7E0992B5EBAA7ACD866A8EBB9F0D15ECF6CF86AA9930F9218E90CA30EB2ED17C0CE18DBE6FF8D976CE712DF33D1D18327D57EE4706F49A2E682D723F5B10EAF64F16392B4B3F4504F5E1FA4D49FFA6BD5BC671EEB9ED7970DA7331D26D7AF781A68B5CD3A6C7FB4BFD19D1B8C55C41F3967C3248035F807CF0E50584B169FB316A431FF66CCAF9D2A3517D5E2CAE3E2FD8315729CE41182F83643AB9CEE15FF52B3B709ACFC300F5E861B711B06289E2DED6B0A1E2F9D3A2C8C2B81A3DD1D341E6BAC036EF5D1A4DECFCD9706773BE12B0DB21EBC72BC8ECB08DB04BA63C535FA5D8FA39390DF1CB396741110691D8FB90CEA8671BDB3B03D236B6BE1B6C53FF24B400CE3B9023860F90FDB38033394E4B7192C66918AF82C4AAFB3814E964D7BE6F813AA8AD9ACF39072B90A2A96AD55D4EDAD456CD0D66575F1ECF280636E66B9D6B8E01EF18F9E9487988B857FAE677A3B76536CBF706DD6AC96B6A3FCFBEF3C0A01B9DB6D1C3BC90DDF6523194F6EA17E11EEAE66717D3E8B1259C495D491B710EF5E2650D05264C31904B356363523B735D73738CD8DEA6D1B28978B586633E6BC613AEE3D0C2B0F583DC4A8EE39BEE8BD7F84130127CE436DC06790C5F91D2F303775FAA83BF465AC0A5375A7BC9D901ECC5F48437E6628836A9B5BD26BE11C6A20F4E55A3293D4525A3896FAB79E12BD9992DD512C9C9E328FC25E9100FFC2521DEA456A525D91B7BD5A7E1DA41E58FC637C75EDC41BC82BDEAA3BCF1D88BED105FECC512FF3CD80BDF71D08E2977E16173CCC55EAF50F0163E89188FB598DEF0C5590CE55BCF58DC3570BD9E23DE091FACD50BF7C83B78767F6FEFC0A5EEC4D7EF4D7DE2FBD2A462DAC76423DC223900520DAFEE344894063249309278D29C41F91753EA5EF2C088EA9E30A95C7E1A3F0A23E29391EA959738053971804747766D0C01E1181092549F0416F54910CF1308760E4AD1E8579B0CD19542722CA331BD0A524E89DC816803D558263B20894DBB0BBA36A348F15A134B07486BA692A150B6C10E186AE72CA050792628B286D4AB5547F1FA885B288D17A68EC2C21E4D8624D9C859C036B76FB5B0B5026F015BDFA5D5A26299D801DA05640482CE9C6520F8EC9F2B4C0910E99491BEF54615327B25949778D687AC2D8DBC681084A9F5D9A81C9A9267FC52C976995D776A9FD0D376ABF1099FAA0F4CCEF8E47D41894DB3EE36399A1BBFDBA54EFF621F779E16894AB8E2BC88224929713BC124FD43AF106E7A8578F82AFA437E6861706CC1F7819E67E40715346B9015D611E5B533B18A6E8921BDD394DE8766D6026EC2393D28667C5F448A9516DE4E1B2FD5DE7AC9D7102C33CD5200B265DF0DE5CD6AAFA05C667CEC343FDA53CE590D1594376D754379AD4728089798C5BA0C63F664B3F62C05D5753B1D4D6DE29BAF9ADD72B38D89E1A6CF1C174C355DBDD88372D90D5391FA2E3384A9218222403A74A6760347ECD05C016C37BA6DDEF10C07D6AB138E678A087CC71F83D52A4EEFA8887C75CA645E87E3FB6E6E1F956E89316621D3CFFCB6BCADA9CCF2E00E70B9E8683902D5E300E74119DC04E802E459B4143F63B7F58ACD41539966E72E0E65B383680AA3BF195B82364AA16CE32F1A4A6AECF7B00B908E53F506D06A8722C80405520C9220E79DBC84B2C800739625EB65AAFB82E76AA31A34D0BD31E9BB540A6CDD752BC4F95CFF0AC627619405CB20CB41B6FC352E5F0D63A85E9C34C638A3E0070A4C94658149BD02C90052E9E668CC152A1A4E7BB74AD33A59D033A699B20F7AE19300670A7CF281393E13CC8CC66532CCF1C4806534A8986BD113426432A61B84DC5EC8F8392B05F0B9C438ABC365DE57A531990CEBD9855FCE92CC2D9C6133F624E4183BF424DD1C4D8C2A46638AB9E6C8ECBBCE342A9B638EC8F896D0804C86450BE9079A9906D219E678EC23CC34209B638E485E5AA6D148AA0512794A998122C9E658CC63C9341A9361237DEAB85BACD0A9132D661A795E8F996724D91A4B2259E80C733CE6E13D1A8FC9B0C6E369A592B751072316DC3175B1F6DC6C904EA646F1A12F2B650C15A58A913054FA2665F4F6CB54E9DADE635D17C346B1AB319FBB9363CF5D8EB56700EE85577348DF4362298BAABA9C9749760208FDCFE9C581F872980EA17D8D91511D9A449B0998F0732EB1135538C6112BA5709AD5568F0F61C46DF4F86C8B6D2F7E4F90D9F0E224738C2A14118D50256C703BB4136EDB28DCA8B35DE7D24D799E6D20DE3465C7916FBB6DEB6EDB6A86F75C0C50C3576CB7C6DCDD0AB0952B00B9F0E17C0150421B2C009AB2E32C0024D40F67094D650FED68079F84FB61069F246FEE04A4F5E9648954387AAA717693797B27F308AA1CBE7EDD7316FB9BC16D781B81BB6DC79C8F78C3A9474C9EC5D695DF942DEC366594B33FBBD954BE01A0A190F24D62A8D3F82C695AB69307DB280F5477AD068A83CA9FC25E1AC88B8D230C865A89A8A8288C1585249B6391B8273414493547E2039BD0787C9E356A1DBF448259E75823B6414A24986D9E35EA99A0A53119F6784DBC11196493678E4A851561D89724FBB504F2714304302ACF6287CEC40F6136E94C8ECD92CB040961575C26CBA295742810A69174462F3C458FCABFB0905B42F00F468809B91652480C03C2882331BB07B6A4CD7C9E85E5468C14C2D86FC46C8B45BC0D1BC2ACE16DEAD62CE112FF04E7EBB9E8D568BFB81B608CB3D237CF31F0E368A9C092C80F8CCA49922DB1EAD80E02589DBE95FCA5744971C85FD8BD75187F2930D4D28989A2C00A276DE80735E6351D1A81B351AB4343A8F1ECB8780B7845E5C5E390552A77E3619C2287185794340F2D30D7DA148F2F6C6C28471EBE814367376CBE6E366C68A8B043BDF3A1AAFCF1ED87485E4CBD0DC70FDEB33B71D9E3F95D28E23091D4CD1DCA4AECFCD6367EE6097A76CB4865786647C1B78DFFA4ADBD4E697FB7BE6DB55F19E3F056F501725FAB682F6A1F37DED10C7F82DEF4C76B29DC013E152558EEA10FF6E6BF2667498CEE06B41F7C0CD2F81614258EEA303DDC3F389C4E4E933828B00762ED42F7867F72C6C8A7EEE008F9D4816839E38BDB7BE62194A28898A01362988CCE57D48D825498F8967587AC90A3E0773D6234069D212A6C63B001C69F89AA497830E8228DC0E3C9F49F55C937938BBF7F610ABF985CE59039DE4CF627FF1AD20CFACA6EEFE610108B66190756513A9559B3CA401EF1C71CE8CA33AE297D08F2F03EC8FFB00C1EFF48431A05E2A32E33500DB70D014C1FC7F68791FA9FB92052E677E60097F13B738027BA9CB9205EF036730B8ACF8F30263A022AAB90BAB641A4E84B3E03B1180F3327A34C5CCC1CC089DE650E40D95B7A0E0025118D863590BEA5E7008FBDA4E70090DCD37301466EEA3940636EEA391133B593990B41408EB807C87DFA645B3DFB4DDAC31C6A3B81B221AD8FC222F7B8B2565CD48E55560A8C42D973ADC8D08E5BDB28FEB65E5CB95A2C458FAD9D50D89850903A35F988163ACA1CC7C62917EB5F73A7C3893297381210D865CACDEE84779672805A5F94708054B94E39C031D4F17702663401A30AC8F65C25CC6ED7B3DBF58C61B2F02CCD9CC97C37C6BC9D70ED255C152E3BCF56B812DF9FFE5C4039FD60909BF8CEA57DD9E00C822A3AE840A4F512B2ABBE2E36EC2C6637217B4FC86F6632B65E3CC33A9CF7DE19342D176467D01381F2DDB13C5A6C0A0E9A59B4B70FBBFE1A358214675BF13178FC00D2BBF2FE647A70F87AB7B9F132DD45F71A1FB39DF08B7AD00D0D718E76EBC445C7011AF1D27100C6BBE8B883AC3D74DC01B6EE39EE20CF5C1DE8F2BE390E2029EF9C469CF750D2641627665E1CBE7CD5CB8C45B992F46F1EEB98E36433CEB8E5B8D840D36E396EF19C74A1E87FD31F4BE270336C6DE11D6DFA374DE25933600BD4FAD4D82A184DC92AF9C5E4A280BBA95FD73063017B835333B89935641DEDF06479B62A747393BD879E878B9AEA7866FA19F1AC7161F8A15C6BACE17A7186C407C58C333A5C4E2425AE752E2592EFE52E0BDDFCC7B5CCB17EC750E1187B93ACDD8B7B44070733E651C61E163F95BB9C7473C1768989868A1EADC1457D8E6CDF51DD921D58BF551A11BD81555AF44331EB6BB9F749777F37E5465CA08943CB169EE43156EC0884F13248900306FCABA83C290E20C321FF16987D68BFFDA23C5D4CF55615AB8861B06DC283CA434A32B1A699742F31B065E13AE50D6AB347097FAD8F7CA3BD9E3730F6B5512CA71E0DF01084BD4F14557D6053D5E093FCFF57AED4C400E87979D43397EA1BE2815B3BE3D1520C4005B6A5C69D4AF5C28654C852AA1554EA284CA77BDDD844C3B3E22BDD4B9A6265DAB721FD31913C882F2D3FDA18F5B4D46813FD318FC83863492AF583FFE3F08C99F851BF1FE8915B24A18FEDC7E99B1231E623E855BC289F8BF5C22CCAA8D15C046066A47082175611ADC7744324B9A3B08EE28546E79C63F272948515CB1B03C95E3ADA4206C246661503D5B9DF0C03A99E86DA460692BC9FB385FC53192455EC8333BF19EE513C39B465CCA30B046FCB40FB7B7B07C2786D4AB5F535E4E64A91EE256B2F63DD15F65E11AC5E3A616593F51B16201DEF886D8720513DEA360273718F31B51B37EEE12481BFEAF79D443B536B912336748DD90E3FC874328D6E90BB32B6C8CBBE136491B27E7DC59D35DA5445ACA2BA2AC9571D55930FBB9AD05A32C47ADB2C69656DC4C1AE2A28539B50079527AB84CAEEA884DAE60A955079B24ADAEC6E52EAB5495E8306BD1B192F9D02304E96E19E16AB4B506281DD052ED9D0093549BED1575B6F6F6DEAAEF702DABAEB6FF475D73B239BBAF13AA0AD1A7FA2AF19ABD4A6157754DA55A15965D521B358094E9681E31C0E9592E95201253B0D9A50854461D5797E34519CD334C4F0518F258B98FE9C470EA35A08666C17D8758FEED04CDF4DC6C76D2A72F9A543192C7ADBBA4F768A23E9ABCEC31E861061B5E14235EA3A415844B8285F8E486ECF1C54C4CA0F2514C712F428B5895D448A043A23AE5E4955A4492CE87D9AE779DC6883AE8434A5BD57B25FA65A8813348429176EC56BF68E086D965705A1CA17D8DD10CA68098A67D51D115A2FB00A3A55CF4FBB2193D60DE44F82BB9A91AD21473929E5A69E81C48E276824360B09695D960D8D6D43322AB211F132B6C223C76DDEF10C6B777502FC293C660C77F3EB14F969E05FE7A088EF08C431C44C41C8ECE3DB6F2ED2DBAC3127702D6A3EE1DFD1809A410437F9A74857406FE5A097268A224EEFA693EADA3B7214BA01D1457AB52E57EB12BD1DB1BC4998FBE2C82CA1ABFF7826B4F9F8AABA4058B82001363346AE2D57E9DB759C446DBBDF4B6EF6292090BDA3BE6F89C6B244F72EEF9E5AA4CB2C3504AABBAF35D3A0774C1308565CA5F3E001F4691B64BF0FE02E089FC8057A1548F740B0DD7E7C1E077779B02C6A0C521EFE843C1C2D1F7FF81FF8D3F6456C020100 , N'6.1.0-30225')
END

IF @CurrentMigration < '201405281546368_test_AutomaticMigration'
BEGIN
    ALTER TABLE [dbo].[Certificate] ADD [WorkOrderNo] [nvarchar](max)
    ALTER TABLE [dbo].[Quotes] ADD [QuoteNumber] [nvarchar](max)
    INSERT [dbo].[__MigrationHistory]([MigrationId], [ContextKey], [Model], [ProductVersion])
    VALUES (N'201405281546368_test_AutomaticMigration', N'CaltechSoft.Service.Migrations.Configuration',  0x1F8B0800000000000400ED5DDD6EDCB815BE2FD07718CC555B643DFED90469606FE1D849D768FCB31967B7E88D214BB42D4423CD4A1AAF8DA24FD68B3E525FA1A42889FF1429519C713A08107848F1E339E4E12179C8C3F3DF7FFFE7F02F4F8B64F208F222CED2A3E9DECEEE7402D2308BE2F4FE68BA2AEFBE7B3BFDCB0FBFFFDDE18768F134F9B9F9EE007D074BA6C5D1F4A12C97EF66B3227C008BA0D859C4619E15D95DB913668B591065B3FDDDDD3FCFF6F66600424C21D66472F8799596F102543FE0CF932C0DC1B25C05C9791681A4A8D361CEBC429D5C040B502C83101C4D4F82A404E1C31CD53007F9631C829D0F10AD7CFEF8CB0E042AC153399D1C277100699B83E46E3A09D2342B831252FEEE4B01E6659EA5F7F3254C0892EBE72580DFDD0549016A8EDE91CF4D99DBDD47CCCD48C1062A5C1565B6B004DC3BA85B6BC617EFD5E6D3B635617BE296425C576D0A9B13E4657C178741094E4119C449319DF0D5BE3B497254A4A3F1F11F3B22E2AB89A4DCAB569AA0D0A17FF0AB5552AE72709482559907C9ABC9D5EA3689C3BF81E7EBEC2B488FD25592D0DC407E601E930093AEF26C094978FE0CEE943C9E45D3C98C459AF1502D901605B7CB595A1EEC4F271790C0E03601AD40516D382FB31CFC15A4208700D15550962087F2701681AAD9047AD4B577576B0C352F83340AF2C81AF222788CEF2BC6D4E0D3C9679054DF140FF1120F465A3A6E64B2F731CF169FB38445927C79731DE4F7008EF4EBCCE8F379B6CAC37E7C348DD4C54FF39D395F9A123AFE74C5647C1ECEC8B03755060EB5C0060DFF81E37E4D03FE226BAA8573179C98A793F3E0E91348EFCB87A329FC134A57FC04A226A526E54B1AC3791C162AF355A74EF825CBBF5EE611C83DD475520916C887EAB10FBFAEE2E502B6E6608598A5518CFAEC330841FC082875385E23903AA1D0A75EEABC068B25924638C846AF0BABCA47F0E36A114795B88FDDA04112DFE6D5D03B790E93F139A42A3CAD1426AE0FFD7D0DD7B6D652780117AEA72BE004AB561E207A3F7EC35F43CD0EBF8F8374F4AA7E823B04284B6769B1042154AFA357781EA4ABBB20442366FCCA4E4111E6F1122FF4C7660CEDB32E568B5B0F7CC1191FEEB43C557675E9ABA23C0B41E443951E1705283D71F519EE27F3AFC5F8CA3307685544D453CF991BC3C875A6BEE8976534B0A835F1269B8D76C330E6DEA9D92418EE9D9AADC8D03D05D94839DB5B34901BB4C7A0F7D403F61AE65B73777B8EA64E0F9B00AF33EB373BDBB95A2F5E83A2FC0C9659EE6B9ED9EAFF61FADFADAD49331F9898A8FACD0BB51560F06450E3AC7B06E8A3EE7DEA76F4FFF84BD528CA4131FEF2F11A241E268DDBD88719214B4B380F5E4139CD522F9DF4610147EFE8B57C442823D7A135996C27A09E9AB9B5AB0E55CD2DD056376FD062786B66DA9A996435F9343375DACE47D3FB5E665857275CDB49AA491626A99F565909CE4AB0183A49B540DB49AAF3F0A5FE6E882CC271545EE57108289837DFAFEFEC1777FF769C3AB46650EB478911A31D6F37D477C46221C916CC13B26F64B6081D9115869AC01B045F0884E164E16E0E9D37E8024E4D95038DB6D56606E3BECF70A99BF2E401C940314C8B5D933D723F808A0B5F6BB66CB10CD2E7A1BA721E24A080B2ADBDEFB2B7FF766B64766D64C6FDA7D179ED17BCD6AB33E48AB8CDB555C1B58AEDA782E5A4B0EAD99490462435B4904F78729A1C05456DF62063F99762B8A11C61BCEC596180A2B03E0FF360208DF3A2F4B21DFD1478AAE87D9C2410D9D729405DDDD5E5FB6C7C5B735DD93FE2E5092CE3ABBA131F57279BBAB2555AE6E35777569C8204C0B9ADA9E97D061526D2ADB69BC08E838CFDD76F5C1D979C64E95D9C2F86D37C1514C56F591EFD18140F1E4CA2E12A8712342F83C5727C53E54396FA5A8C527539EB9AEBDFB28F01BA56FA2145A506E37DCAC2AFD9AAFC9056EBBF2F6568BB046C019C90731C8650297F84C20CA26AA80F34E4C0E544C7A4623AFEFA2F699320562C211179374D3E59B351C9C2828DCEB35D427ECAEEE354434993CF518293E594D479B69420040D2175364747952A2703670D5ABD367B728457B5AF6E297BDEFA321E17CB0B50EE34A59B056D0E31A106FDBA23C0BE9A1817266BDE7DD335EFC1DEEDDDC1DBD76F82E8E0CDF7E0E0F5B76815414DB98EF576D57DA8D2F1AD18A8A69F8364E5BAAA5EA3A11AE3EE474305BBF9A3A12213263FC6115A32CCBA4B341F4378A3EF1B79B61D731C65BE8703C3A6EFCAFDE8805EC305CD45EE470B42DDFCC1221765E9A788A13E52BF2EEDDFD0BB6112E75EDA5E86A4BD1423DDBA771F68B8C857DA747FDFD49F9115B7982BACBC259F0C5A815F837CF0450984B16EFB31A2A18F7836E57CADA3517D5E2CAE3E2FF331D7364E41182F82643AB9CAE15FF5EB417098CFC300B5E87EB711B01289E2C1D6B0A192F9E3A2C8C2B8EA3DD1AB42E626C192F7218D2676BE73B8B139BF0CD8EC50F4E325147648236C92292FD49729B67E4E8E43FC22D04950844124B63EE433EA49637B3F414A63EB27C292FA27810238EE408E043E40F6CF028EE4382DC5411AA761BC0C12ABE6E350A4835DFB6E076AA0B66A3EE7142C418A86AA557339A1A9AD9AEBCCAEB63C9C51026C2CD73A372003D931F20992CA1071E5F42DEF466FE6AC57EE0D9AD552D6D43EA57DC78141333AA5D1C3B890DD2C530994F69A19911EEA966997D0E8B12592495D7F1B710CF592650D07264231504A357D63523B7335747D82D8DEA6D18A8978B586133E6BC113AEE3D0CAB0F5B9DC4889E349F7256B7C2718293E721B6E8D3286AF48E9E581BB2FD5215F234DE0D2DBB3BDF4EC00F1625AC29B70314C9BD4DA5E495F8B60D107A7AADE949EA292DEC4B7D5BCC895ECCC96A24472F2388A7C491AC4837C499837A9556949F6265EF569B8B653F9A3F1F589177710AF10AFFA286F3CF1621BC49778B1CCBF0CF1C2771CB47DCA5D78589F70B1D72B14B2854F22C6132DA6357C4916C3F9C60B16770D5CBFCE11EF840F5ED50BF7C83B6476776767CFE5DA89AFDFDBF2896F4B938A691F93B5488BE40048D5BDBAD320511BC834C148EA497306E55F4DA95BC98320AA5BC2A472F969FC2882884F46AA1765E214E4C4D91E1DD9B5B111846340C8527D1258D42741BC4C20D8392845A35F6D3244570AC9B18CC6F42A6839257207A20D546399EC802436ED2EE8DA8C22C56B4D2C1D20AD994A8642D9063B60A89DB38042E599A0C808A967AB8EE2F511B7501A4F4C1D85853D9A0C49B291B3806D6EDF6A61EB05BC056C7D97568B8A75620768179011083A739681E0B37FAE30A540A44346FAAE1C55C8EC45525EE3591FB2B63CF2AA4150A6D667A372684A9FF15325DB6476CDA97DAE4FDBACC6277CAA363039E393B705A536CD9ADBE4686EFC66973E3020B671E76991B808579C17512C29356E2798A47DE819C24DAB100F5F457BC80F2D0C8E2DF836D0CB8CFCA082160D32C33AE2BC762656F12D31A4779AD2FBF0CC5AC04D24A707C78CEF8BC8B1D2C2DB69E3A5E8ADA77C0DC332D32C05209BF6DD70DECCF60ACE65C6C74EF3A33DE79CD550C17943AB1BCEEB758482718959ACCB3066CF366BCF52705DD3E9686813DF7CD5E8969B6D4C0C377DC6B860AAE96AC51E9CCB6E988ADC7799214C0D111403D2AE33B51B381287E60A60BBD16DF30E673860609D70385344163C3C0F96CB38BDA7220DD62993791D66F0BBB97DB4BD05C698854C3BF3DBF2B6A632CB837BC0E5A2A3E508548F039C0665701BA00B9027D142FC8CDDD62B36074D659A9DBBD895CD0EA2298CFE666C09DAE88BB28DBF6828A9B13FC226406B9CAA3580767528824C5080C8200972DEC94B288B0C302759B25AA4BA2F78A936AA4103DD1B93BE4BA5C0D65DB74292CFB5AF607C127A59B00CB212642B5FE3CAD53081EA254963F4330AB4A0C04459E6984CFC361A91C9B0A0917AC19221904A374763AE64D170DABB5A1AEA6401DB1832651FF4C227C1D914F8E403737C26101B8DCB6498E389C1D6685031D7A22584A86A4C3308B9BD90F1F3580AE05389B15787CBBC0D4B633219D6A315BFC42519AB38C3A6EF49B834B6EB49BA399A18118DC61473CD91D937A9695436C71C91F155A101990C0B0AE9C7A51902E90C733CF601691A90CD314724AF44D36824D502893C03CD409164732CE6A1671A8DC9B0D13E75CC3056E9D48916238D3CD7C78C33926C8D25D12C7486391EF3901F8DC76458E3F1BC52C99BB8A62316E131D776ED39DCA0359E1AC5C7FA5BA963A8085B8C86A1D2D7A9A3375FA74AE7F61EF3BA18F28A9D8DF9DCAD1E7BE97AAC3D5370AFBC9A43FF1E1A4B5954D5E4BC4EB25340E87F6E5D1C882F91E910DAD71D99A54393683300137ECC2576AA0AC76762B5144EB3DAEAF1E197B88D1E9F6DB1EDC5EF13321B5E9C648E518551A211AA84356E87B6CA6D13951B7556EC5CBB29CFC70DD49BA6EC38FA6DBB6DDD6E5BCDF05E8A016AF88CEDD698BB9D013672062017489C4F004A6883094053769C09808429E22CA1A9ECE11E6DE79350454CE793E4F59D80B43EA22C930AC75135CE76306FEE601E612987AF73F71CC5FE46701B9A47906EDB3EE7A3F570CB2326CF62EBCA6FCAAEED36654CD81E81C71E4B19F21801BB7955BE51A06931CA778A692D8D4F9586B2AD7ED944FDA2BA0B3650BD54FE1EF6DA455E6C1CE532D4EA44456D61AC3224D91C8BC465A1A148AA39121F7885C6E3F3AC51EBF82A12CC3AC71AB10DA222C16CF3AC514F84551F93618FD7C44391413679E6A854D813467C49B25FCB221FD74400A3F22C76FC4C7C1366D3CFE4D84CE14C1013760667B22CA8A443953044D219BDF0142D2AFFC2426F09C149182526E45A6821314C09A38EC4EC1ED8129AF93C0B4B9018C984B10789D91693781BD68499C3DBD48D99C225FE13CEE773D1EBD27E7237C01867A66F9E8BE0FBD172014B2253304B4E926C8955C79E10C0EAF48D942FA5CB8C43F9C2EEB7C3E44B81A1D64E4C94075639694353A831AFE8D00D9CCD5B1DBA428D6727C51B202B2A2F2387A252B9430F931439C4B8AAA4790882B926A7781C626D5D3972F70DEC3ABB6EF37553624D5D851DFE9D7755F55E807D17C98BA9B7E1F8417E76272E7BDCBF0B45EC2692BABE435EC9B981F59901F3443EBB65A4323C8BA3E07BC77FD2D65EA7B4BF5BDFBBDAEF8D71C8ABDA00B9D755BC17B50F1EEF08873F413107F05C0A7780CF4509163BE8839DF9AFC94912A3BB06ED07E7411ADF81A2C45127A6FBBB7BFBD3C971120705F690AC5DFCDEF14FE218F9FCED1D209F3F102D667C717BCF41845214111314430CE3D1F9CABB51100D13DFB7EE901A7214FCEE488CFAA03384866D8C38C0F85B5135090F1A9DA511783A9AFEB32AF96E72F6F71BA6F0AB49E511F56EB23BF9D71032E82BC0BDC92120166419077E513ABD598BCA4019F1271CE80A35AE297D0CF2F021C8FFB0089EFE48439A443B611CE71CE0D1972DA886B00D794C1F17F78791FAC7B96052E617E70097F18B738027BAC4B9605EF086730B8ACFA330263A522AAB10C2B641B3E84B4803B1180F3827BD4C5CE01CC089DE6F0E40D95B840E0025119C861148DF227480C75E22740048EE11BA002337091DA03137099DA899DA09CE85222047E603F43E7D52AE1EFD26F43087E44EA06C58EBB300927B84592F84D48E5F560B22C5E2D1F5C288762CDB44F5B7F1EACAD564297A946D95C2DA9482D4E9CA4774D451C6383676B998FF9A3B224E1673892305815DBADCEC4E78672E07A8F5C50B0748956B97031CC335FE56C18CA6605401E85EAA86D9EE7AB6BB9E314C169EB599339DEFC698B755AEBD94ABC2A5E8C52A57E29BD45F0A28A7240C721BDFBBB42F1B9C695045071DB0B45E4C76D5D7C5869DED6C0764EF01F9CD0CC6D6CB685883F3DE458386E535D919F444603C8B9CECA55ADF22CBA3CFA6E0A0914A7B23B1DC1811418AB3549C074F9F407A5F3E1C4DF7F6DF6E374B5ED487E8FEE3437B10795177BAA161CFD1EE9FB8103940235E440EC07817227790B507913BC0D67DC81DE489AB0362DE77C80124E53DD44C0F3D167D320B16332EF65FBFE96516A35C5DFA93C73A0E39D9DC336E432E36E4B4DB905B3C274D28FA07F5C79238040D9B5B7847A0FEA4493C7F066CA95A9F1FDB054653B24A7E35392BE0EEECD715CCB886ADC12D33B89135641EEDF0B479B14BF2E6A67D8F751E2E6ABAC6335B9F11CF1F17CB68CAF5C71AAE9764487C64CC24A3C3254652E24AE7F222F95EEE52D12D7F1C658ED7770C178EB1D729DABDA44774C030131E65EC66F153B94B4CB7146C969A68B8E8410D2EEAB367FBF6EA86ECC0FACDD288E935CCD2A29F8C595BCBBD63BADBBB2937E2044D1C6E36F06490B18A47208C1741821C44E05F45E5E9B107050EF9DFC0EC7DFBED17E58963BA6E55898A1846DC26BCAA3C242713AB9B49F712435C16EE544E509B3D4AF8707DE420ED75BF81B1C38D6261F520C04310FB3E5168F58161559D4FF2FF5FA55213F3A0E76554CF52AA27C483B476C6F3A504800A0C4CF53B95EA450CA990AF141554EA2842A77BCDD96485672557BA9743C5CAB46F61FA13227910645A7F34D74719ADD126FA131E5170C6D254EA0007E3C88C99FA51BF6FE8515A24A1A3EDFBE99B5231E63DE855BD289FC7F5222CCAA8DB5C0465A6A77082175111ADC7342192DC514447F182A473C93179D9CAC28AE54D80642F316DA0006123B34A80EADC6F4680544F576DA20049DEF7D940F9A90C922AF1C199DF8CF4289E44DA30E16143DB0F13A0DD9D9D3DA1BFD6B5B4F5D5E5E68B22DD4BDB5EFA9A3E16B8913C152D19B4CA012B1BACDFB002E978E76C331489EAD1B911848B7B2CAADDB8710F3B09F255BF3F25DA995A8B1CB1A16BCC76F8C1A8A369748BDC9FB1455EF69DA08B94F5EB2BEEACD1A62A6215D55549BEEAA89A7CD845426BC910EB6DB3A495B51116BBAAA04C6D421D549EAC122ABBA3126A9B2B5442E5C92A69B3BB59A9E726790D1AF46E643C750AC03859867B5C2C2F4089157617B8644327D424F9465F6DBDBDB5A9BBDE0B68EBAEBFD1D75DEF8C6CEAC6F380B66AFC89BE66BCA436ADB8A3D2AE0ACD2AAB0E99C54A70B20C1CE770A8944E972A28D969D0842A242AABCEF3A389E29CA661868FF22C99C4F4E73C7218D54430639BC0AE79748766FA66323E6E53B1CB4F1DCAE0D89BD67CB2531C495B751EF6308C08B30D179A52D708C224C2453573C4727BE6A062567E28A13896A07BA94DEC625264D01973F54CAA624D6241EF439EE77EA30DBA12D694F65EC97E99A210276818534EDC8AD7F61D31DA4CAF0A46952FC4BB61945925289E7D77C4683DC12AF8543D8FED864D7A6D207FB2DCD5886C0D39CA412937F50C64763C4523B1594858EBB26C686C1B925E91F58897BE151E616EF30E6778755727C09FC263CB7037BF4A919F06FE750A8AF89E401C42CC1484CC3EBEFDE62CBDCB1A73024751F309FF2E075C194470937F8CD60AE8ED1DF4724551C4E9FD74525D7B478E42B7203A4B2F57E57255A2B72816B709735F1C992574F51FCE049A0F2FAB0B84850B16209931726DB94CDFAFE2246AE9FE28B9D9A78040F68EFABE25EACB12DDBBBC7F6E912EB2D410A86EBED64C83DE454D20587199CE8347D08736287E9FC07D103E930BF42A90EE8E609BFDF0340EEEF36051D418A43CFC0965385A3CFDF03F2F78860284040100 , N'6.1.0-30225')
END

IF @CurrentMigration < '201405281546369_test'
BEGIN
    ALTER TABLE [dbo].[Equipment] ADD [Customer_Id] [int]
    CREATE INDEX [IX_Customer_Id] ON [dbo].[Equipment]([Customer_Id])
    ALTER TABLE [dbo].[Equipment] ADD CONSTRAINT [FK_dbo.Equipment_dbo.Customers_Customer_Id] FOREIGN KEY ([Customer_Id]) REFERENCES [dbo].[Customers] ([Id])
    DECLARE @var0 nvarchar(128)
    SELECT @var0 = name
    FROM sys.default_constraints
    WHERE parent_object_id = object_id(N'dbo.Equipment')
    AND col_name(parent_object_id, parent_column_id) = 'CustomerId';
    IF @var0 IS NOT NULL
        EXECUTE('ALTER TABLE [dbo].[Equipment] DROP CONSTRAINT [' + @var0 + ']')
    ALTER TABLE [dbo].[Equipment] DROP COLUMN [CustomerId]
    INSERT [dbo].[__MigrationHistory]([MigrationId], [ContextKey], [Model], [ProductVersion])
    VALUES (N'201405281546369_test', N'CaltechSoft.Service.Migrations.Configuration',  0x1F8B0800000000000400ED5DDD6EDC3A92BE5F60DFA1D157BB838C3B76E60467037B068E9DCC189BD89EB43333981B4396685B885AEA23A9333616FB647B318F34AFB0A4FEF857A4488962B7731A010237297E2C92C562B1C862FDEBFFFE79FC87A75532FB8EF222CED293F9E1C1EBF90CA56116C5E9C3C97C53DEFFF6E7F91F7EFFEFFF76FC215A3DCDFED27EF7867C874BA6C5C9FCB12CD7EF168B227C44ABA03858C5619E15D97D791066AB4510658BA3D7AFFF6B7178B84018628EB166B3E32F9BB48C57A8FA817F9E656988D6E526483E67114A8A261DE72C2BD4D965B042C53A08D1C9FC2C484A143E2E490D4B947F8F4374F001A395CF1FFF7A80814AF454CE67A7491C60DA9628B99FCF8234CDCAA0C494BFFB5AA0659967E9C3728D1382E4E6798DF077F74152A0A645EFE8E7A68D7B7D441AB7A0055BA8705394D9CA12F0F04DD35B0BB1F8A03E9F77BD89FBB3EE29D2EAAA4F7177A2BC8CEFE33028D1392A833829E633B1DA7767494E8AF4747EFDC7818CF86A06947BD57113663AF20F7FB549CA4D8E4E52B429F3207935BBDEDC2571F8DFE8F926FB86D2937493246C6B707B701E978093AEF36C8D4978FE82EE956DBC88E6B3058FB410A13A202D4ADD2F1769F9E6683EBBC404067709EA188AE9C36599E5E88F2845390688AE83B24439E6878B0855DD26D1A3AEBDBF5A63A86519A4519047D69097C1F7F8A16A981A7C3EFB8292EA9BE2315ED79391E58E5B88F73EE6D9EA4B96F048C097B73741FE80F04CBFC98C3E5F669B3C1CD68EB693FADAD37E67DE2E4D095DFB74C5A0761E2FE8B43715060EA5C00E4DFF91F37E4B13FE326BABC56B175E98E7B3CFC1D327943E948F2773FC27E6AEF809456D4A43CAD734C6EB382E54E69B5E99F0D72CFF76954728F750D759C558281F2BC73EFCB289D72BDC9BA3056296463119B32F2844F177C488C3E93A81D689993EF552E70D5AAD0937E24936795DB5A8FC8EFEB459C551C5EE53776890C4777935F5CE9EC364FA1632159E5702B3AE8FFC7D83755B6B2EBCC48AEBF90639C16A84078ADE4FDFF13758B2E3EFE3209DBCAA3FE31D02E6A58BB458A3108BD7C92BFC1CA49BFB20243366FACACE5111E6F1BA56F4A76E18D9675D6E56771EDA85577CBCD3F254D9F595AF8AF22C44910F517A5A14A8F4D4AA2F783F997F2BA6179E39225A11154F0357EE1A069699FAA25FD7D1C8A2D6C49B6C36BA0DC3947BA7769360B8776AB72263F7147423E56C6FD142EED01E83DD538FD86B986FCDDDED39DA3A3D6C02BCAEAC3FEC6AE74A5FBC4145F905ADB3DCD73AB397FFE3E4BF5B5B93663D3031510D5B171A2BC0E8C5A0C1D9F60A3044DCFB94EDE4FFE955D528CA5131BDFA7883120F8BC65DECC38C90A5255E07AF319F66A99741FAB0C2B377F25A3E129489EBD09A4CF60B90F902D49952150B4F23636FD9EF985546CE969714E09B51EB4787337601E980F62BC80EA9EC7B63D8DE1806D5E4D318D66BE19F6C75F2A207FCFA9640E3C5E5CF9BAC4417255A8D5D5C3AA0FDE2D27BB4D37C37861731FF97D7791C2206E6EDEFB677B25C0FFFD8E3E95FDD3C355255414DB59B6FB7CC77545305B2254D15FA06D254754456186A026F097C211156274B377FD8BC51D77B1AAA1C48B4BD343398F743A64BD395678F84078A7152EC86EEC0870154ADF0A56B65AB75903E8F9595CB204105E66DED6D9AC3A39FF7EA936B13763D7E1A99D77D214ABD260316C45DAEAD086E44EC30110C93C28B6753425A96D4D0423F11C96973141475D9A34C295F8BF1667882F1B257851182C2FAB4CD83F935CE8BD2CB36F253E0A9A2F7719260645F670C4D75D757EFB3E92DD94D657F8FD767B88CAFEACE7C5CCC6CEBCA3669994F5FDD45718E1284D7B6B6A6F719169844B6DA6E027B8E498E7E7AEBEA30E62C4BEFE37C359EE6EBA028FE91E5D19F82E2D1832933DCE498839665B05A4F6F627CCC525FCA285397B3A1B9F947F6312097563FA4A4D468BC4F59F82DDB941FD24AFFFB5A86B62A6007E0849CD330C442F92366661455537DA42107AB133D8B8AE9FC1BAED22641AC50210979B76D3ED5D99864496163F36C55C84FD9439C6A2869F3054AEA64989226CF961282A021A4C916E8A8526132EAAC51DA6BBB27277855FFEA54D9CF9DA7E469B1BE44E5415BBA5568738C8925E8B70309F6D5CCB830D5798F4C75DE378777F76F7EFEE96D10BD79FB3BF4E6A71FD12A42BA721BFA76357CA4D2E9AD18A4A6BF04C9C6755583664335C7DDCF860A76F7674345264EFE1E47446558F497683FC6F046DFB7FC6C3BE704CA7C4F07AE99BE2BF72303064D17B216B99F2D0475F7270BCCCAE0A7A44143B87E5BD2BFA577C738CE3DB7BD0C4E7B2946BA6DEF3EC87481356D76BC6F9BCFA8C62DE74A9A37F0C9280DFC06E5A32F4A108C6DDB8F090D43D8B32DE74B8F26F579B1B8FABC84C75DDB384761BC0A92F9EC3AC77F356F13E169BE0C03D2A347FD46C08A258A475BC3868AE74F8B220BE36AF4649F0DC8098327EF431ACDEC3CF3EACE16BC3E70B763D68FD798D9318DB84BE622535FA5B5F573761AD6EF0D9D0545184472EFE376460369ECEE278034765E283CA9BF9128C0F30EE584E10362FF2CF04C8ED3529EA4711AC6EB20B1EA3E01059CECDA5741480775558B39E7688D523255ADBACB094D5DD5C260F6F5E5F182616063BED6391919F08E91C711C843D451D437BF1BBDC8B35DBE37E8564B5E537BAC0E9D0706DDE894461FF302F081503294CE2182E19ECE058EE799D707078712DBE8D101DE642EC06959D2A20FA0DB752A2AB557ED2895CC4DDBBE89A3C7B6E901A77264D07CD6B4C064628C9CA99AB131A99DBB1EBB95C9C8DF28D2B2897CBD48603E6BC693AE24194CE91DE13891745FBC260E8291F0A73702B7C863F535313D3F0877C67AF86B222506BC413C48CE8E602FAE27BC3117D768935ABB6BF95B612CF6F058359AE049321DCDFAC69E17BE82CEAD194A80D3D749F80BE8100FFC0534DEA456A535DD1B7B353702B4832A5E0FD81E7B09971114ECD51C674EC75E7C87F8622FBEF12F83BDEA7B1EDA31152E7D6C8FB9F82B260ADEAA4F63A6632DAE377C7116D7F29D672CE12ABC5ECF91EFC58FD6EAA5BBF43D3C0BEED247E84E62FDDED427B12F4D2A66FD6CB6C22DC021986A78752762B2348024C144E249730EE75F4CA97BC90323AA7BC2A472F846C2248C589F0E556FF6C429CAE94301E4D8B28B3E211D85E22635A7A145731A26F204815DA252367C36665372AD921E4D69CCCF92945322F720DA40B5D6D91E486AD7EF836ECC28205E6762E901611FAB915018DB600F0CB3739650983C1314889066B5EA29DE1CF34BA5EB85A9A7B0B4478390808D9C056C7B03590BDB28F016B0CD7D622D6A2D137B40FB808C40C8B93B0452DF7F100A3302049C32E0CB7D4C21B3375F4589677DD0DCB551140D9230B53E1F86A11979262E957C97D975A7F641446DB71A9F72AAFAC0E49C13EE0B466C9A75B7C9F1A4876E879E0303FAB8EFC48C6FA5E6CC8C6D125D19745DA6392263C058FA47F70AF8F484DC2BBD6768F2D644718AC63444B90EF58279E915EAFBADE80FF828C7E03047EC033D5BC0C73726DC35B8E58D9BB9AADDC0F142EF01C39036F3E702269C33A0C59C5794DC62A5DDBBD7F2CDD0DB28429A0643066B06005286DCB4BCD581142D874CB2BD4659FB960BB65445CB5B5ADDB4BCD1AE140D078C857DE642FB66F3563E45AB1B3A1D4D6DFA6A836A76C3C62C1373D690392E19B0FA7A7140CBA1BBC772EBFB8C33A6E619A601E0D0995A531CB1437B39B4DBFE7779C78B3A50659370BC5044B43CFE1CACD771FAC044B86C5266CB26BCE56F97F6511E5735C622E4FA593456743595591E3C2021971CB847A87A36E23C2883BB805C8D3D8B56F267BCB143B1656A2BD3D833E4A16CF7556D61F2376761D146FD84CC21B2F9A8C1FE88BB80E838556F20ADCE2C83CC4860D2200972D1FD4F2A4BCC526759B259A5BA2F44AE36AA41033D1893BD65A7C0D65DC4239C2FF4AF6492934659B297F21C64CB5FD3F2D538861AC449538C3309F0A1C02459E6985CDC401691CBB0A091890DC811C8A49BA37117D55838ED0D360D7550A0408E4CE88341F83428A0029F7E608ECF05006471B90C733C39C81F0B2AE75AF48414CD8FEB0629771072FD709A02F81C3081EB70B9D77E594C2EC37AB6D66FB40173B5CEB0197B1AA68F1F7A9A6E8E2647E26331E55C7364FE95711695CF3147E4BC9858402EC38242F6B9708E4036C31C8F7F129C05E473CC11E9BBDF2C1A4DB540A20F7B735034D91C8B7BBA9B45E3326CA44F13AB8E173A4DA2C54CA30F3972F38C265B63019285CD30C7E39E7864F1B80C6B3CB1AD4CF22EEA74D44E3EA56ED79D4E8ED2F1D4283EF46FA58C6122BB71128649DFA68CDE7D990AAEED03D67539D41ABF1A8BB97B39F6D2E55877A6E05E78B5572106482C655155978B32C94E0091FF05BD3890DFA8D32174EF7E72AA439B6833011371CE2576A2AA8E0BC64BA93ACD6AAB2786FD12367A62B6C5B6B77EB992DBF0D649E61855F82E16A14AD8E276682FDC7651B8698FF6474A37E5F9B88178D3949D46BEEDB7ADFB6DAB19DE4B31408D5FB1F7327B276536BDF2E15C642BA10D44B6A6EC34229B869C126C9729F4089376F069D8296EF069F2F6CE2C3A5F57BE910A075835CE7E32EFEE649E40F9AAAFA50F9CC5FE6670176649E26EDB3117232F090A0D9767B1D914B7513776DB282E0493D4C601CA077D5481DF6E2ADF5AD0F418E303C6F596C6374C43D95EBEECA27C51DDDE1A295E2ABF157BE902179B46B88CB513311178383B0A4D36C7A2317658289A6A8E2406D161F1C43C6BD426560E80D9E4582376017100CC2ECF1AF54CD2FAB80C7BBC36B60D04D9E699A332216C38F6A5C97E6D81628C1A098CC9B3D8A373B16AB86D3A9763B384730169F8159CCBB2A0920D3BC311C9660CC253F428FC8585DC9202CD70424CCAB5904272C8194E1CC9D903B0019AC53C0BDB8D1C9586B3E0C8D9168B7817A2865BC3BBD49D59C2018F07E7EBB9EC3D6ABFB81B604CB3D2B7CF5E88E368A9C0D228239CCA49932DB19A3822125893BE93FCA5747271C85FB51BF138FE5260A8A51317B183174EDA30236ACC6B360C8760A556872151E3D971F10EF08ACA2FC821AB546EDDE3380586985694B40F5A7017DB148F5C6C6D28271EBE914367376CBEEE366C69A8EA870B9C0F55F5EE81FD10C1C5D4DBF03AB802BF13870235F4A1C8C34453B7772C0B9C1B589F1970E10EF82D2393E19F1D794F3AF85A14F788C0C0FB4F1C86F15500E23BA8703F011E21903BCF48927488F003450C09C3A8533E933458CE6989EA1C5066170509A4D105D1306CB3E85D29B38DE464297ED2316D93D2FDEE9C2C1B0747CEF3B2EA11E24759F544D1385B8A1E8FF52724EC48AD829DCC97CF45895607E48383E52FC95912134EEA3EF81CA4F13D2ACA3AF0CCFCE8F5E1D17C769AC44151BBC236BE9CEFC417A18C9C3B0FDF10E74E14AD1662717B1751825214111717478EE4D31BE8C1288E8E8993637F541D18A57E76272663D01B45C7364C24E21CEB989AA4F7BC2ED2083D9DCCFFA72AF96E76F1B75BAEF0AB59E5FAF66EF67AF6BF63C860EF7A0F2687825890651CFB49E9DD68CD2A2379C41F7390BBF2754DE9F7200F1F83FC3F56C1D37FB29026018F380F490778AC8B24D311B651CFD95B06C361404748178D841C201DE0720E900EF064DF47178D97DC1EDD82D6C798352639892CAB28E2B671F3D8DB6623B138574727A34C7D1D1DC0C96E8E0E40F9EBA20E0081206EE30864AF8B3AC0E36F8B3A00A417465D80D12BA30ED0B82BA34EC44CE3EDE84210D09B1623E43E7BC1423DFB4DE8E1EE563881B269DA10050876FDB35684D41E7E560A91427974AD18B11E84BB28FE765E5CB95A2C65D7C1BD50D89A5000BDEB7C04489E648ED7365217EB5F7BB5C8893297381210B5EF9E9BDD89E8B5E700B5B9AFE300A9F2E1738063A8E3EF05CC640246157FF1A54A98FDAE67BFEB99C264E1599A3993F97BB16866ECBC1D601AA745550671B919C68259E1C5F662053375871B3E588C1F5C0D72173FB8B44D1B0C3A5374D4E14CE73867577D536CDCB9D05E240C9E903FCC64EC1CDBC675B8E8D0366A5ADED05DC54004CE99CDC93EAC7367B35C1BDA82A3662AEB00C7B7C688085A9CA7E273F0F409A50FE5E3C9FCF0E8E7BD46E1457CC81E673EA407E517F5A01B1A051D590EA8D79A0334EAB8E6004CF45A7307D938ADB903EC3CD6DC419EB93A5C16DDD51C40320E6BEDF23040E983AC5FDCBC38FAE9ED20931AE35D359C3CDE57CD896180F35473B199673DD5DCE239E942D9256D3816E083366E6D117DCF869306389B8DD852756E66B60A465BB24A7E35BB28F0EEEC970DCEB8C1BD21A819C2CC1AB38EF63877BD5895BC75EE18A0E7D5454D753C33FD8C3A9BB950A3196F336BB8419C01B8659971468F171650E25AE765057C0F7BF1F4F39F409963FD8E6B8563EC6DB2F620EE917D7ECC984719F65CFE14F6C2EAE782DD12136D2B06505317F539B2434775477660C35669D2E82DACD2B26B96595FC30E59FDFDDD969B7081A63E5E3B78AAC859C52314C6AB2021CE25F8AFA2F21239C40C473C7970F691FDF68B71FE32D55B55ACC2B8EDB4DA01BD6AD61B3A178E66DB5225471EE723DC1F4A9E5B5769BDB39C9D86B537CD59508481FC164CE5CB64404917291826A8CBE6E9FA8D545D5F5CF96698E2348CD74102F488F02D38D97A02401D2FBA0AC49C73B446299948EA1E704240578F30187DDDC3798719739F7100677D4C65D5E0D3FC5F2B576A02630CBCC8EA994BF584F8E0D6BE50D840EC6A7ED8BB447EB05F1F1C1C4AE34DB19848D40C18933A0DEBA8C31298A86956CCA17B241CE009BD37AE074EE80DFF3D7CF42612484C8468860A2675121EB21BD7914CA47BB658AE4CFB10AF3F268263A60F152453328FCC383F80E0513D900B081DF5E3AA1EB90588346F3F4E3F9488311F41AFE245F936B71766A982A943AFC40901D7B991AA13BCB08A7C8EC01202E44EC23A8AE76B9D738EC9B37A16F64C6F0C043D03B7830C541F37A818A8C9FD611848F56EDE2E3210F0B8D80EF24F659A56B14F9DF9C3708FE23DB61D639E5AD7696FD08D63A09EBDB55FD5D6D7909B2B45BA67FEBD8C357B40740BBC530F4C5AE5848526EB0F2C407A1E59DC0D41A27AF17202E6129E1CEB366EC2F360127F358FCCC916C7CE364B4F533406DCFAD9B1937974479CE8EBB319E83B491629EBD757DC5BA34D55D43EAEAB927ED55335FDB08F84CE9221D7DB658195750159FBAA604C6D521D4C1E540993DD5309B3CD952A61F2A04ABAECFEA6346B135C8306BD1FB95E3A25E03A19C23D2DD697A8AC05761F38B0A1936A02BED157DB6C6F6DEA6EF602DABA9B6FF475373B239BBAEB75405B75FD89BEE65AA536ADB8A7D2BE0ACD2AABAE1BC895D4C910789D23A0F22F4A9A9D4ECF9842B2B0EA3D49E4EDACB2D81583C2038B98FEC40F86512D04C2A39A76DDA33B3ED57793F1C1ABAAB9E2D221B657B5166CBFFBA0876781BEEA3BF653D8EB59F2BB444D1748EB94F0F0EDF80643C75640837B4FB7C690AD321933659954374DEE0E59548D854F611C8D2BB76833E1F55C35AE511D544D038E0C8690E779DC580B36D034A5811B30103014D6099A86293515456C13470D6DF509454395F138DC3494538B1441361C35B4D12814ED54052370D34C5619820344B89A919DE54A392961DBD6C8C64E276800230DD0B43E538EC698038C0A34225EC6567ABBBCCB3B5ED4EA6C93807F4A6F941F2FBE6C52E2A254FF3A4745FC4021C8CBEB290A39C345F7CD457A9FB5F61381A2F613F1391BAC0A4541199C12E5883C59451E7C298A387D98CF2A8F0FE2237787A28BF46A53AE372579C265759770AE12C40EA3ABFF7821D17C7C55DD9D2D5C3401931913AFAEABF4FD264EA28EEE8FC0A556050431F034578DC95896E4CAF1C373877499A586404DF7757629F29C7082C18AAB74197C474368C3ECF7093D04E133F51D5181F40F04DFEDC7E771F09007ABA2C1A0E5F14FCCC3D1EAE9F7FF0F338E3DA91C0C0100 , N'6.1.0-30225')
END

IF @CurrentMigration < '201405281547480_test1'
BEGIN
    EXECUTE sp_rename @objname = N'dbo.Equipment.Customer_Id', @newname = N'CustomerId', @objtype = N'COLUMN'
    EXECUTE sp_rename @objname = N'dbo.Equipment.IX_Customer_Id', @newname = N'IX_CustomerId', @objtype = N'INDEX'
    INSERT [dbo].[__MigrationHistory]([MigrationId], [ContextKey], [Model], [ProductVersion])
    VALUES (N'201405281547480_test1', N'CaltechSoft.Service.Migrations.Configuration',  0x1F8B0800000000000400ED5DDD6EDCBA11BE2FD07758EC555BA4DED8E9094E03BB856327ADD1C471B34E5BF4C69025DA16A295F648DAD446D127EB451FA9AF50527FFC1B52A44471D7E92240E025C58F7FC3E17086C3F9EFBFFF73FCFBC75532FB86F222CED293F9E1C1CBF90CA56116C5E9FDC97C53DEFDFAC7F9EF7FF7F39F1DBF8B568FB3BFB4DFBD22DFE1926971327F28CBF59BC5A2081FD02A280E567198674576571E84D96A1144D9E2E8E5CBDF2E0E0F170843CC31D66C76FC799396F10A553FF0CFB32C0DD1BADC04C9C72C4249D1A4E39C65853ABB0C56A85807213A999F054989C28725A96189F26F71880EDE61B4F2E9FD5F0F3050891ECBF9EC348903DCB6254AEEE6B3204DB3322871CBDF7C29D0B2CCB3F47EB9C6094172FDB446F8BBBB202950D3A337F473D3CEBD3C229D5BD0822D54B829CA6C650978F8AA19AD85587CD098CFBBD1C4E3598F14E97535A67838515EC677711894E81C95419C14F39958ED9BB32427457A06BFFEE340467C3103CABDE8A809131DF987BFDA24E526472729DA947990BC985D6D6E9338FC137ABACEBEA2F424DD2409DB1BDC1F9CC725E0A4AB3C5BE3263C7D4677CA3E5E44F3D982475A88501D9016A51E978BB47C75349F5DE20606B709EA088A19C36599E5E80F2845390688AE82B24439A6878B0855C326B5475D7B7FB5C650CB3248A3208FAC212F836FF17DD53135F87CF61925D537C543BCAE17234B1D3710EDBDCFB3D5E72CE191802F6FAE83FC1EE1957E9D197DBECC367938AC1FED20F5F5A7FDCEBC5F9A12BAFEE98A41FD3C5ED0656FCA0C1C72811D5AFE23D7FD9616FC65D6568BF72EBC31CF671F83C70F28BD2F1F4EE6F84F4C5DF1238ADA94A6295FD218EFE3B850996F7A79C25FB3FCEBA73C42B987BACE2AC242F9583EF6EEA74DBC5EE1D11CCD10B3348AC99C7D46218ABF21861D4E3708B44E4CF4A9973AAFD16A4DA8112FB2C9EBAA59E537F4C7CD2A8E2A729F7A408324BECDABA577F61426D3F790A9F0BC6298757DE4EF6B2CDB5A53E125165CCF37C80956C33C50F476FA81BFC69C1D7F1F07E9E455FD199F10302D5DA4C51A8598BD4E5EE1C720DDDC05215931D357768E8A308FD7B5A03F75C7C839EB72B3BAF5D02FBCE3E39396A7CAAE3EF9AA28CF4214F960A5A745814A4FBDFA8CCF93F9D7627AE69923221551F63470E7AE61609EA92FFA651D8D2C6ADD7893C346776098F2ECD41E120CCF4EED5164EC99821EA49C9D2D5AC81D3A63B067EA11670DF3A3B9BB33475BA7874380D79DF5BBDDED5CC98BD7A8283FA37596FBDA67F6FC7F1CFF77AB6BD2EC07262AAA61FB42A30518BD193438DBDE0186B07B9FBC9DFC3FBDA81A45392AA6171FAF51E261D3B88D7DA811B2B4C4FBE015A6D32CF53249EF5678F54E5ECB7B8232711D5A95C97E0332DF803A552ABCF174D937946BD34D46CE958C17C027A30C151DDED8DDA303DA6F1F3B24AFEF35617B4D1854934F4D58AF7A7FB2ADC98B10A034C2EDB74D8B735BB71BBAD834C55398665F1DB469FE799395E8A244ABB19B6607B4DF347BED55CD7763160B5ED7E5551E87888179FD9BED99CBEBE91F6B73DF3312686E404ED2ADB71BE63BCA4A806C899740DF40CC44D7C80A43DDC01B025F480DAB93A513019B37EA28D0B4CA0147DB733383753F64B9344379F64068A018C7C5AEA95A611840D50B5F3264B65A07E9D3585EB90C125460DAD65E113A3CFA71AF97772DDFD5F3A7E179DD1722D76B326046DCE5DAB2E086C50E63C1705378F66CDA909624356DA19F88CD6973142DEAB24749BB5F8AF1B60582F1BC7785118CC2DA84E841A71CE745E9E578FC21F054D1DB384930B22FC34953DDD5A7B7D9F4EAF9A6B2BFC7EB335CC65775673E6E9BB675659BB4CCA7AFEEA2384709C27B5B5BD3DB0C334CC25B6D0F813DB69FA31F5EBBB2309D65E95D9CAFC6B7F92A288A7F6479F4C7A078F0A0A20D3739A6A06519ACD6D3AB4E1FB2D49730CAD4E56C6AAEFF91BD0FC84DDC772929351AEF43167ECD36E5BBB492FFBE94A1AD08D8013869CE691862A6FC1E13338AAAA53E529183C5899E4DC574FD0D17699320568890A479376D3E95D99864496063F36C45C80FD97D9C6A5AD2E60B2DA993E1963479B62D21089A8634D9423BAA54B81975D628E9B53D9313BC6A7C75A2ECC7CEFDF3B4585FA2F2A02DDD0AB439C6C41CF4EB8104FB62665C98CABC47A632EFABC3DBBB573FFEF03A885EBDFE0D7AF5C3F7A8152143B90D79BB9A3E52E9F45A0C52D35F8264E3BAAA41ABA15AE3EE574305BBFBABA16A264EFE1647446458F497683FC6F046DFB7F46CBBE68496F95E0E5C377D57EE87070C5A2E642F72BF5A08EAEE2F169894C14F49878650FDB6B87FDBDE1DA338F7D4F63C28EDB928E9B67DFA20CB0596B4D9F9BE693EA312B79C2B49DEC027A324F06B948FBE284130B6AD3F266D18429E6D395F7234A9CF8BC6D5E7E542EEDAC6390AE35590CC675739FEAB7970092FF365189011EDBD7B75515424513CD82A3654347F5A14591857B3273BA2409E257CF3DEA5D1CCCEDDB01E6CC195050F3B26FD788D891DB7110FC95C24EA4F69ADFD9C9D86F5234A67411106913CFAB89FD1C03676F713C03676AE357C537F25B500AF3B9413820F88FEB3C02B394E4B7991C66918AF83C46AF8041470B16B9F3A2103D4552DE69CA3354AC952B51A2E276DEAAA1626B36F2C8F170C011BD3B5CE73CA80768CDCA8401AA2DEAFBEE9DDE899A1EDD2BDC1B05AD29ADA0D77E83A301846A76DF4B02E803BAA2A7AD25D58A5B4C35C50EB23192D344496DD2D5A1EF9E5C1C1A11B7A54B7C3645E47129A7A7C8D888AB9CEBD154A82EE28AAE65B7B61914E38735FD99C9674171D4DE8D429371E44859A1E782043CDDC98D4CE5D32DE1E2176F7B2B464225FD21288CF9AF0A48B5D06FC6B47284E6CBA2F5A1327C188DBD17B955BA4B1FAB29D9E1E849B773DF435912808DEC31EC4674790173712DE888BEBB449AD9D73C356088B35C1AB6613B4C7D3D9ACEF3D7AA12BC8FACFB404B0614F425FC08078A02FA0F326B52A6D12DEC8ABB957A19D54F192C5F6C84BB8D2A120AFC6283C1D79F103E28BBCF8CE3F0FF2AA6FCB68E754B83AB33DE2E22FEA2868ABB6694D475ADC68F8A22CAEE73B4F588243815ECE91BD0B464BF59247420FCDBA5349C0F57B139FC4B134A998F556DA0AB500A644D5F4EAEC8A32378038C144EC4963CDF4CFA6D4A3E48110D5236152397CAF631242AC6D6CD5734E718A72FA8C0431FE768149248332EE5263532E1A9BA248130476894A597DDC289FC9E5546AE0D328F1252EA744EE41B4816A75DC3D90D43AD207DDA85140BC4EC5D203C2BE7724A130BAC11E18E6E42CA13079262850439ADDAAA7787359422A5D6F4C3D85A5331A84041CE42C60DB7BDC5AD84680B7806D6E656B516B9ED803DA076404426E2F4020F52D12A130C340C025033EEAC814327B0E58E478D6E6FAAE8F226B9098A9B5951D8666F899B855F24366379CDAB732B5C36A6C2B568D8189B5181E0B866D9A0DB7899177FA61871EBD9187B8CFECC8F551637864FAC37274CD80694C8DECE0D03D66F488808F77C843D26B3F938F250A0B1AD30FE51ED40B060C8A7A84878E0AF59E578C076CC63130E48863A0270AD87433253DB48EFAAA7E03A6855EE3C2903EF3360113CA19D063CEAF4CEEB152E7DDABF566DADB08419A0E43CA6A06001284DCF4BC957F143D87D4B1BD0A59FB9E0B7A5445CFDBB6BAE9792359293A0E280AFB5485F6DDE6357C8A5E37ED74B4B4E9BB17AAD50D2BB24C545943D6B8A4BCEA1BC5013D876E6FCBBDEF53CC98AA66980E805367AA4971440EEDF5DAEEE8DFE51D2FEAF8A54DC2F14211E8F4F863B05EC7E93D13F8B449992D9BA8A7BF5EDA07FF5CD5188B901B675151D1D5546679708F845C626C8F50F5F0C6795006B701B95C7C16ADE4CF784587E2B8D456A6D165C853D99EA9DAC2E46F4EBBA20D060BA94264D55183FD1E0F019171AAD1405A795906999178B54112E4A203A55496A8A4CEB264B34A755F88546D5483067A30267B4F5181ADBBCA48285F185F491D27CDB2A42BE529C896BEA6A5AB7104358892A6986712F7458149B2CC31B970922C229761D146E67A23D740CDB547351A77498D85D3DE5ED3B40E8A1FC93513FA60103E8D15A9C0A71F98E3737121595C2EC31C4F8EFDC882CAB91623210579E48641CA1D845C3F3DA7003E07D4DF3A5CEE1D681693CBB05EADF52B77C05AAD336CE69E466FE4A79EA69BA3C9011A594C39D71C997F7F9E45E573CC11393F301690CBB06821FB903CD74036C31C8F7F2C9E05E473CC11E98BF02C1A4DB540A24FBE735034D91C8B7BD49D45E3326CB84F13C290673A4DA2C54AA34F6172EB8C265B63019C85CD30C7E31EC964F1B80C6B3CB1AF4CF22ECA7454473EA56CD7592647C9786A141FF2B792C73001FF380EC3A46F9347EF3E4F05F7F601FBBA1C818FDF8DC5DC3D1F7BEE7CACB329B8675E0AA39A09C75216550DB9C893EC1810F95F908B03F9953F1D42F7722A273AB489360B3011D75C62C7AAEA70713C97AAD3AC8E7A623438E1A027665B1C7BEBB73FB9036F9D648E5145756311AA842D1E87F6CC6D17991B632B76CEDD94F67103F6A6293B0D7FDB1F5BF7C75633BCE7A2801ABF63BB55E6EE77809DDC01E80512E71B8012DA6003D0949D6603A021C0044D680A3D8AA59D7C1A068C9B7C9ABC3D0B48E735CB7752E14AABC6D92FE6DD5DCC138872F505F781ABD8DF0AEEC25E49D46D3BE762242C413CE2F22C8EAEE2A1ECDAEE50C685C492FA384094A1CF33F08757E5AB0D9A1163BCC9B8D1D27899695AB6E72FBBC85F5477C146B297CA03C69EBBC0C5A6612E63B54E4C44244E2B4393CDB168CC23168AA69A2389418D583C31CF1AB5895D04603639D6885D802200B3CBB3463D93A43E2EC31EAF8D350441B679E6A84C48218E7C69B25FCDA21833480263F22C4EFC5CEC20EED0CFE5D86CE15C80207E07E7B22C5AC98601E21AC9660CC2538C28FC8505DF9202FF704C4CCAB5E0427208208E1DC9D903B081368B79169A20394A10A70F92B32D36F12E6410B78777A93BB38503FE13CEF773D90FD57E7337C09866A76F1FD010E7D15280A5515F389193265B6235715D24B0267D27E94BE932E390BE6A87E471F4A5C05073272E820ACF9CB4615FD498576C581441E7AD0E0BA3C6B3A3E21DA0159597914352A91CC4C7510A0C312D2B699FC6E0AEC9299ECBD8DA544E3C7D23A7CE6EDA7CDD94D8D254D54F20389FAAEA0505FB29828BA98FE175B00BFE240E05CEE84391A789A66ECFC80BD80DAC6D065CF809FEC8C864782647C9F74EFCA4ABBD49E97E77BE778DDF1BE790578D0171AFABFA5E343E78A2235CFD0989E751EFA5F804F854946875403E3858FE949C2531B96BD07DF03148E33B5494754497F9D1CBC3A3F9EC348983A2F6906C5CFCDE888F0419F9FC1DBE223E7F285A2DC4E2F69E8304A528222EE08C1C22A737828251801A13DFB7FE7035304AFD124B4CE6A0373C8D6DFC45C4F95B3135494F3C5DA4117A3C99FFB32AF96676F1B71BAEF08B59E511F566F672F6AF31CD60AF000F6E0E05B16896715025A5D39B35A98CA4117FC441AE50D735A5DF823C7C08F25FAC82C75FB29026918438C7390778EC650B66206CC389B3E6E2E130A07F9C8B4E427E710E7039BF380778B24B9C8BCE4BDE706E416B7B548D494C4A65159EDB36201D7B09692416E701E76496A90B9C0338D9FBCD01287F8BD00120101D6D5C03D95B840EF0F84B840E00E93D421760F426A10334EE26A11336D338C1B96004D4643E82EFB39672F5EA37690F6724770265D3B5210210EC11662D08A91DBFAC042285F0E85A30621DCB7691FDED3CBB72B559CA1E657BA6B035A600C75EF310797892355E2BBB5CEC7FED1D1127C25CE28841D42E5D6E4E27A2339703D4E6E28503A4CAB5CB018EA18CBF67309331185548BEE7CA61F6A79EFDA9670A9585676EE68CE72B9479269ADFAEA44ADDBB67CB93B1658533D2B365CBD4AB69381530EE4C35C86D7CEF52336DB02698A2A34C339DFF935DF54DB17156A1FD821CBC20BF9BC5D8F9278D1B70D12F69D4B2BCA6678A81089C4F92935358E79564B975B60547AD54D68F89EF8D51236871BE151F83C70F28BD2F1F4EE687473FEEF7732FEC43761CF2C13D28BDA827DD5025E8486F409D8F1CA051FF230760A2F3913BC8C6F7C81D60E778E40EF2CC956959F43A7200C9F81DB5DBC300A10FD27D71EBE2E887D783146A8C93CCF0E6F12E474ED4029CC3918BA33CEB70E416CFC910CA9E45C3B10057A2717B8BE84234BC6980CFD0882355E72D642B60B425ABE417B38B029FCE7EDAE08C6B3C1A829821ACAC31FB688F8FCEB315C9DB3BFA03E4BCBAA8A98C67269F519F21176234E334640D37883200EF1A33CAE871A6014A5CE99C6580EF61678C7EFA135AE658BEE37AE1187B9BA43D887A64D70D33E251C6C1963F859D69FAA960B7D844DB8B01ADA98BFA9CD9A1B3BA2327B061BB34E9F4167669D9C3C66CAC61BF9AFEF16ECB4DB84153579D1DB429725AF10885F12A48886B09FEABA87C440E31C111CF1D9C7D647FFC627C784CE55615A9C821D96D42D5C2E14DB9B8E75CBA9778EC50E858B8415DF624A1D8F53187B4170547C661378AA235A001CEE3B06BA9CF38A2AF3EC8AE6AF269FEFF2B556AA2250CBCC6EA994AF50DF140AD7DC191D9F9EF622CB3B3DE25F273FDF2E0E0509A6E20323207C6A44E4339EAA7EA4DA4342BDAD03D1C0D9084E6355A2F74D01B117AF8E44DC48E98A0C14C2B98D44948C86E5A47D290EEED59B932ED6BAAFE88080EA33D948F4C493C32E17C077C47F5CA29C073D42F647AA41620F8B8FD3C7D572CC67C06BDB217E503CB5E884519B75D88C1CDCD549DE08554642B02DB10207712D251BC41EA9C724CDE46B3D0667A2320E82DAF1D24A0DAD8A022A026F7BB2120D5E367BB4840C00B513B483F95625A453E75E677433D8A47B5768C786A59A7BD3F378E807A8ED67E455B5F536E2E14E9DE6AF732D7AC79E806786C1C58B4CA050B2DD6EF9881F4BC94B71B8C44F56CE104C4253C37D61DDC84A7C124FA6A5E3093F58D9D6696DA5234EADBFAC9B19379744B1CE86BCB0CF49DC48B94F5EB2BEEADD1A62AAA1DD75549BFEAA99A7ED8D7844E9321D7DB65819575313AFBAA60546D521D4C1E540993DD530973CC952A61F2A04ABAECFEAE347B135C8306BD1FB9DE3A25E03A19C23D2DD697A8AC19761F3870A0936A02BED157DB1C6F6DEA6ECE02DABA9B6FF4753727239BBAEB7D405B75FD89BEE65AA436ADB8A7D2BE0ACD2AAB2E1BC895D4C910789D23A0323C1D6450905570C614929955AF1D91D7B3CA6C578C130E6C627A7B1F0CA3DA0816FC10D80D8FCE78AA1F2663B3ABAABBE2D6A10CAFBE6BC30758F380A1EAB3F929B4F56CE3BB44CD0048BB941014757C7721A315D0DF5EDBD69866AB14C64C5926D54D973B138BAAB3B00DC6D1BC725B361321CD55E71AC141D535C06030A4799EE78DD55F035D53AAB701F500D3C23A41D331A59CA2084FE1A8A3AD34A1E8A832A4829B8E724291224E82A38E36F284A29FAAF7E4DD74931585E037FE5DADC84E6FA55C94B0666B6467A76334808A06E85A9F2247A3CA0166059A112F732BBD5ADEE51D2F6A61B649C03FA5D7C98F179F3729714FAA7F9DA322BEA710C718334521A7B6E8BEB948EFB2567B22B4A8FD447CC8060B42515006A74434228F5591A75E8A224EEFE7B3CADB83F8C7DDA2E822FDB429D79B923CDEB2BA4D383709A285D1D57FBC90DA7CFCA9BA375BB8E8026E664C3CBA3EA56F37711275ED7E0F5C68554010F54E73CD98CC6549AE1BDF3F754897596A08D40C5FA795220F092718ACF8942E836F6848DB30F97D40F741F844FD465420FD13C10FFBF1791CDCE7C1AA68306879FC13D370B47AFCDDFF009B0415BA440C0100 , N'6.1.0-30225')
END

